/**
 *
 * requireJS默认配置文件
 * @author       Liu Yutao
 * @email        koal@vip.qq.com
 * @date         2018/1/19 20:44
 */
var jsUrl = '/static/js/';
var cssUrl = '/static/css';
require.config({
    waitSeconds: 30,//超时时间
    //时间戳后缀
    // urlArgs: 'v=20171016',
    // 基准URL
    baseUrl: jsUrl,
    // 模块和模块位置
    paths: {
        global: cssUrl,
        base: 'common/base',
        artTemplate: 'common/art-template',
        jquery: 'common/jquery.min',
        jqBrowser: 'common/jquery.browser.min',
        jqValidate: 'common/jquery.validate.min',
        jqValidateCN: 'common/jquery.validate.zh_CN.min',
        jqPrint: 'common/jquery.print',
        validForm: 'common/validForm.min',
        modernizr: 'common/modernizr.min',
        bootstrap: 'common/bootstrap.min',
        bootstrapDialog: 'plugins/bootstrap-dialog/bootstrap-dialog',
        bootstrapTable: 'plugins/bootstrap-table/bootstrap-table',
        laydate: 'plugins/laydate/laydate',
        bootstrapEditable: 'plugins/bootstrap-editable/bootstrap-editable.min',
        bootstrapDatepicker: 'plugins/bootstrap-datepicker/bootstrap-datepicker.min',
        bootstrapDatepickerCN: 'plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min',
        msgTool: 'plugins/toastr/toastr',
        select2: 'plugins/select2/select2.full.min',
        viewerjs: 'plugins/viewer/viewer.min',
        jqViewer: 'plugins/viewer/jquery-viewer.min',
        baseUtils: 'common/baseUtils',
        highcharts: 'common/highcharts',
        exporting: 'common/exporting',
        highchartsCN: 'common/highcharts-zh_CN',
        sandSignika: 'common/sand-signika'
    },
    // 解决使用非AMD方式定义的模块（如jQuery插件）及其载入顺序和依赖
    shim: {
        bootstrap: ['jquery'],
        base: ['bootstrap'],
        jqBrowser: ['jquery'],
        jqValidate: ['jquery'],
        jqPrint: ['jquery'],
        bootstrapDialog: ['jquery'],
        bootstrapTable: ['jquery'],
        bootstrapEditable: ['css!global/plugins/bootstrap-editable/bootstrap-editable.css', 'jquery'],
        jqValidateCN: ['jqValidate'],
        validForm: ['jquery'],
        select2: ['jquery'],
        jqViewer: ['jquery', 'viewerjs'],
        msgTool: ['jquery'],
        baseUtils: ['jquery'],
        bootstrapDatepicker: ['css!global/plugins/bootstrap-datepicker/bootstrap-datepicker3.min.css', 'bootstrap'],
        bootstrapDatepickerCN: ['bootstrapDatepicker'],
        highcharts: ['jquery'],
        exporting: ['highcharts'],
        highchartsCN: ['highcharts'],
        sandSignika: ['highcharts']
    },
    map: {
        "*": {
            css: "css"
        }
    }
});

